import { Box } from "@mantine/core";
import ModalImage from "react-modal-image";

export default function ImageModal({ src }) {
  if (!src || src === "") {
    return <></>;
  }

  return (
    <Box w={160} h={90}>
      <ModalImage small={src} large={src} alt="image" />
    </Box>
  );
}
